package com.abm.dbclases;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "Category")
public class Category {
	@DatabaseField(generatedId = true, canBeNull = false)
	private int id;

	@DatabaseField(canBeNull = false)
	private String catname;

	public Category() {
	}

	public Category(int id, String catname) {
		super();
		this.id = id;
		this.catname = catname;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return this.catname;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCatName() {
		return catname;
	}

	public void setCatName(String catname) {
		this.catname = catname;
	}

}
